<html>
    <head>
        <meta charset="utf-8"/>
        <title>Android与Js交互</title>
    </head>

    <body>
        <!--JS的代码-->
        <script type="text/javascript">

            function clickJS() {
                document.getElementById("zi").innerHTML = "Android调用了JS代码"
            }


            function clickJSTwo(x) {
                document.getElementById("zi").innerHTML = x
            }


            function clickAndroid(){
            android.jsToast("我是JS,我调用了Android的方法")
        }
        </script>

        <button type="button" onclick="clickAndroid()">我是一个按钮</button>
        <p id="zi">在这里改变代码</p>
    </body>

</html>